package cn.goldcup.jboot.service.impl;

import cn.goldcup.jboot.model.User;
import cn.goldcup.jboot.service.UserService;
import io.jboot.aop.annotation.Bean;
import io.jboot.components.rpc.annotation.RPCBean;
import io.jboot.service.JbootServiceBase;

@Bean
@RPCBean
public class UserServiceImpl extends JbootServiceBase<User> implements UserService {
    @Override
    public User checkLoginUser(String userName, String password) {
        User user = DAO.findFirst("select * from user where userName = ? and password = ?", userName, password);
        return user;
    }
}
